<%-- 
    Document   : class-modify-removestudent-ation
    Created on : Feb 19, 2012, 9:18:11 PM
    Author     : PhucAn
--%>
<%@page import="dao.ClassStudentDAO"%>
<%
try{
    int classId=Integer.parseInt(request.getParameter("class-id"));
    int studentId=Integer.parseInt(request.getParameter("student-id"));
    ClassStudentDAO daoCS=new ClassStudentDAO();
    int eff=daoCS.delete(classId, studentId);
    out.print(eff);    
}catch(NumberFormatException ex){
    out.print("Invalid id format");
}
%>